#ifndef AUDIOPLAY_H
#define AUDIOPLAY_H

#if (QT_VERSION == 0x050000)
#include <QtWidgets/QDialog>
#elif (QT_VERSION == 0x040000)
#include <QtGui/QDialog>
#endif

#if defined(Q_OS_WIN32) || defined(Q_OS_UNIX)
#include <QtMultimedia/QAudioFormat>
#include <QtMultimedia/QAudioOutput>
#endif

#if defined(Q_OS_X11)
#include <QtMultimediaKit/QAudioFormat>
#include <QtMultimediaKit/QAudioOutput>
#endif

#include <QFile>

class AudioPlay : public QDialog
{
	Q_OBJECT

public:
	AudioPlay(QWidget *parent = 0, Qt::WFlags flags = 0);
	~AudioPlay();

private:
	QFile inputFile;     // class member.
	QAudioOutput* audio; // class member.
	Ui::AudioPlayClass ui;

private slots:
	void finishedPlaying(QAudio::State state);
};

#endif // AUDIOPLAY_H
